package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppVerSionDao;
import com.vf.admin.client.service.AppVerSionService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppVerSion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 版本升级
 */
@Service
public class AppVerSionServiceImpl implements AppVerSionService {

    @Autowired
    private AppVerSionDao verSionDao;

    @Override
    public List<AppVerSion> find(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return verSionDao.find(paraMap,splitPage);
    }

    @Override
    public AppVerSion getId(int id) {
        return verSionDao.get(id);
    }

    @Override
    public void save(AppVerSion versions) {
        verSionDao.save(versions);
    }

    @Override
    public void del(int id) {
        verSionDao.del(id);
    }

    @Override
    public AppVerSion latestVersion(Map<String, String> paraMap) {
        return verSionDao.latestVersion(paraMap);
    }

    @Override
    public List<AppVerSion> list(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return verSionDao.list(paraMap, splitPage);
    }
}
